---
layout: default
---

{% assign sorted_collections = site.collections | sort: "position" %}
{% for collection in sorted_collections %}
    {% assign sorted_docs = collection.docs | sort: "position" %}
        {% for doc in sorted_docs %}
            {% if doc.collection == "documentation" %}
                <div class="doc doc-full">
                    <div class="info">
                        <h2 class="title">
                            <a id="{{ doc.slug }}"></a>
                            {{ doc.title }}
                        </h2>
                        <p>{{ doc.content }}</p>
                    </div>
                </div>
            {% endif %}
        {% endfor %}
{% endfor %}

{% assign allData = site.data %}

{% for data in allData %}

    {% assign singleData = data[1] %}
    <div class="doc doc-full">
        <a id="{{ data[0] }}"></a>
        <div class="info">
            <h1 class="title"><a href="#{{ data[0] }}"></a>
                {{singleData.info.title}}
            </h1>
            <div class="props">
                <span class="prop-name">version</span>
                <span class="value">{{singleData.info.version}}</span>
            </div>
            {{singleData.info.description|newline_to_br| markdownify}}
            <hr/>
            {% include yaml.html data=singleData.info.contact %}
        </div>
    </div>

    <div class="doc doc-full">
        <h2 class="info title">Methods</h2>
    </div>
    {% assign paths = singleData.paths | sort %}
    {% for path in paths %}
    {% assign path_name = path[0] %}
        {% for method_name in site.defaults.method_order %}
            {% assign method = path[1][method_name] %}
            {% if method %}
            {% include endpoint.html path=path_name name=method_name method=method %}
            {% endif %}
        {% endfor %}
    {% endfor %}
    <div class="doc doc-full">
        <h2 class="info title">Definitions</h2>
    </div>
    {% assign definitions = singleData.definitions | sort %}
    {% for definition in definitions %}
          {% include definition.html definition=definition %}
    {% endfor %}
{% endfor %}
